package lambda;

public class TestA {
    public static void main(String[] args) {
        A a1 = new A() {
            @Override
            public void show(String name,int age) {
                System.out.println("name="+name+"age"+age);
            }
        };
        a1.show("李四",19);
        //改成lambda表达式
        A a2 = (name,age)-> System.out.println("name="+name+"age"+age);
        a2.show("张三",18);
    }


}
